import java.util.Scanner;

/**
 * @Author 12629
 * @Description：
 */
public class Test {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        System.out.println("读入年龄：");
        int age = scan.nextInt();
        System.out.println(age);

        scan.nextLine();

        System.out.println("读入姓名：");
        String name = scan.nextLine();
        System.out.println(name);

        System.out.println("读入工资");
        float money = scan.nextFloat();
        System.out.println(money);

        scan.close();
    }
    public static void main25(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("读入姓名：");
        String name = scan.nextLine();
        //String name = scan.next();//遇到空格之后 读取结束
        System.out.println(name);
        System.out.println("读入年龄：");
        int age = scan.nextInt();
        System.out.println(age);

        System.out.println("读入工资");
        float money = scan.nextFloat();
        System.out.println(money);

        scan.close();

    }
    public static void main24(String[] args) {
        int i = 0;
        do {
            System.out.println(i);
            i++;
        }while (i != 10);

    }
    public static void main23(String[] args) {
        int sum = 0;
        for (int k = 1; k <= 5; k++) {
            int ret = 1;
            for (int i = 1; i <= k; i++) {
                ret *= i;
            }
            sum += ret;
        }
        System.out.println(sum);
    }

    public static void main22(String[] args) {
        /*for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }*/
        for(;;) {
            System.out.println("123");
        }
    }
    /**
     * 求1-100之间 所有既能被3整除 也能被6整除的 所有数字
     * 要求要么使用break  要么使用continue
     * @param args
     */

    public static void main21(String[] args) {
        int i = 1;
        while (i <= 100) {
            if(i % 6 != 0 ) {
                i++;
                continue;
            }
            System.out.println(i);
            i++;
        }
    }

    public static void main19(String[] args) {
        int i = 1;
        while (i <= 100) {
            if(i % 3 == 0 && i % 6 == 0) {
                System.out.println(i);
            }
            i++;
        }
    }

    public static void main20(String[] args) {
        int i = 1;
        while (i <= 100) {
            if(i % 3 != 0 || i % 6 != 0 ) {
                i++;
                continue;
            }
            System.out.println(i);
            i++;
        }
    }
    public static void main18(String[] args) {
        int i = 1;
        while (i <= 10) {
            if(i == 3) {
                i++;
                continue;
            }
            System.out.println(i);
            i++;
        }
    }
    public static void main17(String[] args) {
        int sum = 0;
        int k = 1;
        while (k <= 5) {
            int ret = 1;
            int i = 1;
            while (i <= k) {
                ret *= i;
                i++;
            }
            sum += ret;
            k++;
        }
        System.out.println(sum);
    }
    public static void main16(String[] args) {
        int ret = 1;
        int i = 1;
        while (i <= 5)
            ret *= i;
            i++;
        System.out.println(ret);
    }

    public static void main15(String[] args) {
        while (true) {
            System.out.println("haha");
        }
    }
    public static void main14(String[] args) {
        int i = 1;
        int sum = 0;
        while (i <= 100) {
            sum += i;
            i++;
        }
        System.out.println(sum);
    }
    public static void main13(String[] args) {
        int a = 1;
        while(a <= 3) {
            System.out.println(a);
            a++;
        }
        System.out.println("fdsfa");
    }
    public static void main12(String[] args) {
        /*Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();*/

        String str = "haha";
        switch (str) {
            case "1":
                System.out.println("1");
                break;
            case "2":
                System.out.println("2");
                break;
            case "3":
                System.out.println("3");
                break;
            default:
                System.out.println("输入有误！");
                break;
        }
    }
    public static void main11(String[] args) {
        Scanner scan = new Scanner(System.in);
        int year = scan.nextInt();
        if(year%100 == 0) {
            if(year % 400 == 0) {
                System.out.println(year + " 是闰年！");
            }else {
                System.out.println(year + " 不是闰年！");
            }
        }else {
            if(year % 4 == 0) {
                System.out.println(year + " 是闰年！");
            }else {
                System.out.println(year + " 不是闰年！");
            }
        }
    }
    public static void main10(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();

        if(a % 2 == 0) {
            System.out.println("偶数");
        }else {
            System.out.println("奇数");
        }
    }
    public static void main9(String[] args) {
        int a = 10;
        if(a > 9) {
            System.out.println(a);
        }else if(a > 4){
            System.out.println("haha");
        }else {
            System.out.println("嘿嘿嘿");
        }
    }
    public static void main8(String[] args) {
        boolean flg = true == true ? true == false ? false : true : true;
        System.out.println(flg);
    }
    public static void main7(String[] args) {
        int a = 1;
        int b = 2;
        int max = a > b ? a : b;
        System.out.println(max);
    }
    public static void main6(String[] args) {
        int a = 1;
        int b = 2;
        System.out.println(a == 1 || 10/0 == 0); // 左为真 且 右为真 则结果为真
        /*System.out.println(a == 1 || b > 100); // 左为真 但 右为假 则结果也为真
        System.out.println(a > 100 || b == 2); // 左为假 但 右为真 则结果也为真
        System.out.println(a > 100 || b > 100); // 左为假 且 右为假 则结果为假*/
    }
    public static void main5(String[] args) {
        int a = 1;
        int b = 2;
        System.out.println(a > 100 && 10/0 != 0);

        /*System.out.println(a == 1 && b == 2); // 左为真 且 右为真 则结果为真
        System.out.println(a == 1 && b > 100); // 左为真 但 右为假 则结果为假
        System.out.println(a > 100 && b == 2); // 左为假 但 右为真 则结果为假
        System.out.println(a > 100 && b > 100); // 左为假 且 右为假 则结果为假*/
    }
    public static void main4(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a == b); // false
        System.out.println(a != b); // true
        System.out.println(a < b); // true
        System.out.println(a > b); // false
        System.out.println(a <= b); // true
        System.out.println(a >= b); // false

        //System.out.println(3<a<5);
    }
    public static void main3(String[] args) {
        int a = 1;
        a = a++;
        System.out.println(a);
    }
    public static void main2(String[] args) {
        int a = 1;
        int b = ++a;
        System.out.println(a);
        System.out.println(b);
    }
    public static void main1(String[] args) {
       /* System.out.println(5/2);
        System.out.println(5/2.0);
        System.out.println(5.0/2.0);*/

       //System.out.println(5/0);//0是不能作为除数的
        /*System.out.println(10%3);//1
        System.out.println(10%-3);//1
        System.out.println(-10%3);//-1
        System.out.println(-10%-3);//-1*/

        /*System.out.println(11.5%2);*/

       /* int a = 1;
        a += 1;// a = a + 1
        System.out.println(a);*/

        int sum = 0;
        sum = sum + (int)1.2;
        //sum = (int)(sum + 1.2);
        //sum += 1.2;
        System.out.println(sum);
    }
}
